home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / qptech.arc / TI533.ASC < prev    next >
Text File  |  1991-04-25  |  6KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. PRODUCT  :  Quattro Pro                            NUMBER  :  533
  9. VERSION  :  All
  10.      OS  :  DOS
  11.    DATE  :  March 16, 1991                 PAGE  :  1/4
  12.  
  13.   TITLE  :  Text Formulas
  14.  
  15.  
  16.  
  17.  
  18. Text formulas are formulas that result in a textual entry.  Text
  19. formulas include those created with string functions (see the
  20. User's Guide) or an @function that results in a string.
  21.  
  22. There are (generally) three parameters to a concatenated string:
  23.  
  24. 1.  +           The plus symbol (+) specifies the trailing text as
  25.            a formula.  Always begin a text formula with a '+'
  26.            sign.
  27.  
  28. 2.  constant   The constant is the part of the formula which will
  29.            not change.  Constants should be placed within
  30.            quotes.
  31.  
  32. 3.  variable   The variable is the part of the formula which is
  33.            being concatenated to the constant.  It is
  34.            preceded by an ampersand (&), and should be
  35.            followed by another ampersand if there is more
  36.            information to add (concatenate) to the end of the
  37.            string.    Variables must be valid text strings.
  38.            Use the @STRING function if the variable is not a
  39.            text string -- this converts the variable to a
  40.            string format.
  41.  
  42.  
  43. EXAMPLES
  44.  
  45.  
  46. Example 1
  47.  
  48.      +"Book"&" Review"
  49.  
  50. This example concatenates the text string "Book" with the text
  51. string " Review".  The result is "Book Review".
  52.  
  53. If you break this example into its appropriate parts, you will
  54. find a '+' sign (denoting a formula), and two constants ("Book"
  55. and " Review").  In this case, there is no variable.  This is a
  56. redundant type of example, but it does show the manipulation of
  57. strings in formulas.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. PRODUCT  :  Quattro Pro                            NUMBER  :  533
  75. VERSION  :  All
  76.      OS  :  DOS
  77.    DATE  :  March 16, 1991                 PAGE  :  2/4
  78.  
  79.   TITLE  :  Text Formulas
  80.  
  81.  
  82.  
  83.  
  84. Example 2
  85.  
  86.      +C4&" Review"
  87.  
  88. This example takes the contents of cell C4, adds a space and the
  89. text 'Review' to C4's contents.  If C4 contains the label 'Book',
  90. the result of this formula will be 'Book Review'.
  91.  
  92. Again, note the '+' sign beginning the formula.  However, C4
  93. becomes the variable.  Since the contents of C4 can change at any
  94. time, it is referenced as a variable.  The constant in this case
  95. is " Review".  In this example, it is assumed that C4 contains a
  96. label.    The next example shows the formula needed if C4 contains
  97. a value.
  98.  
  99. Example 3
  100.  
  101.      +@STRING(C4,0)&" Review"
  102.  
  103. This example is similar to the previous one except the @STRING
  104. function is used to translate a value in C4 to a string so it can
  105. be used in the formula.  If C4 contains the value '4', the result
  106. is "4 Review".
  107.  
  108. Example 4
  109.  
  110. +"{GETLABEL ""Enter Name: "","&@CELLPOINTER("address")&"}"
  111.  
  112. This example prompts the user for a name and places the response
  113. in the current cell since {GETLABEL} requires a valid block in
  114. which to store the response.  Since the address in this example
  115. is variable, the address is added when the command is executed.
  116.  
  117.                * * * * * *
  118.  
  119. +  "{GETLABEL ""Enter Name: "","  &@CELLPOINTER("address")  &"}"
  120. │  └────────────┬──────────────┘  └──────────┬───────────┘  └─┬┘
  121. P          First              Variable       Second
  122. L         Constant                     Constant
  123. U
  124. S
  125.  
  126.                * * * * * *
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. PRODUCT  :  Quattro Pro                            NUMBER  :  533
  141. VERSION  :  All
  142.      OS  :  DOS
  143.    DATE  :  March 16, 1991                 PAGE  :  3/4
  144.  
  145.   TITLE  :  Text Formulas
  146.  
  147.  
  148.  
  149.  
  150. +           Indicates the following text as a formula.
  151.  
  152. "{GETLABEL ""Enter Name: "","
  153.            The first constant.  Notice that the constant is
  154.            enclosed in quotes while the prompt for {GETLABEL}
  155.            is enclosed in a pair of quotes.  This is
  156.            necessary so one set of quotes will appear after
  157.            the string formula has been calculated.
  158.  
  159. &@CELLPOINTER("address")
  160.            This is the variable.  Notice the result of this
  161.            function will be a text string (the address of the
  162.            current cell).  Notice the ampersand (&), which
  163.            indicates the following string should be appended
  164.            (concatenated) to the previous string (the first
  165.            constant).
  166.  
  167. &"}"           The second constant.  Notice that the constant is
  168.            enclosed in quotes.  Since the string is to also
  169.            be appended within the formula, it too is preceded
  170.            by an ampersand.
  171.  
  172.  
  173. Example 5
  174.  
  175.      +"{LET "&@CELLPOINTER("address")&",A25}"
  176.  
  177. This example takes the contents of cell A25 and places it in the
  178. cell referenced by the cell selector.  This initializes the
  179. current cell to the contents of cell A25.
  180.  
  181.  
  182.                * * * * * *
  183.  
  184.      +      "{LET "    &@CELLPOINTER("address")    &",A25}"
  185.      │      └──┬──┘    └──────────┬───────────┘    └───┬──┘
  186.      P       First         Variable          Second
  187.      L       Constant            Constant
  188.      U
  189.      S
  190.  
  191.                * * * * * *
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206. PRODUCT  :  Quattro Pro                            NUMBER  :  533
  207. VERSION  :  All
  208.      OS  :  DOS
  209.    DATE  :  March 16, 1991                 PAGE  :  4/4
  210.  
  211.   TITLE  :  Text Formulas
  212.  
  213.  
  214.  
  215.  
  216. +            Indicates the following text is a formula.
  217.  
  218. "{LET "             The first constant.  Notice that the constant
  219.             is enclosed in quotes.
  220.  
  221. &@CELLPOINTER("address")
  222.             The variable.  Notice that the result of this
  223.             function will be a text string (the address
  224.             of the current cell).  Also, notice the
  225.             ampersand (&), which indicates the following
  226.             text string should be concatenated to the
  227.             previous string (the first constant).
  228.  
  229. &",A25}"        The second constant.  The ampersand indicates
  230.             that this constant should be appended to the
  231.             previous string.  Notice the quotes around
  232.             the constant.
  233.  
  234. When a text formula is used within a macro, precede the
  235. concatenate command with a {CALC} command.  Spreadsheet
  236. recalculation is suspended while a macro executes.  Therefore, to
  237. ensure that all text formulas are current before executing them,
  238. the {CALC} command should be used to update the formulas.
  239.  
  240. Concatenating text strings takes practice and patience.  Try
  241. manipulating other sorts of text strings until you are
  242. comfortable with the operation.
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.